package leetCode.firstWeek;

public class Code_33 {
    public int search(int[] nums, int target) {



        int index = -1;
        for (int i = 0; i < nums.length; i++) {
            if (nums[i] == target) {
                index = i;
            }
        }
        
        return index;
    }
}
